Builder

class Builder

A builder of TouchPoint.

Builders are created by invoking newBuilder}. Each of the setter methods modifies the state of the builder and returns the same instance. Builders are not thread-safe and should not be used concurrently from multiple threads without external synchronization.

Functions

Link copied to clipboard
open fun build(): TouchPoint
Returns a new TouchPoint instance built from the current state of this builder.
Link copied to clipboard
open fun force(force: Float): TouchPoint.Builder
Sets the applied force of the touch point.
Link copied to clipboard
open fun positionInWidget(widgetPosition: Point): TouchPoint.Builder
Sets the touch position relative to the bounds of the widget.
Link copied to clipboard
open fun radiusX(radiusX: Float): TouchPoint.Builder
Sets the X axis radius of the touch ellipse.
Link copied to clipboard
open fun radiusY(radiusY: Float): TouchPoint.Builder
Sets the Y axis radius of the touch ellipse.
Link copied to clipboard
open fun rotationAngle(rotationAngle: Float): TouchPoint.Builder
Sets the rotation angle of the touch.